# mongodb://用户名:密码@服务器IP或域名:端口
from pymongo import MongoClient
client = MongoClient('mongodb://root:123456@47.25.12.145:27017/')

from pymongo import MongoClient
client = MongoClient('mongodb://47.25.12.145:27017')
# 本地
from pymongo import MongoClient
client = MongoClient()
